package com.qtu.product_service.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qtu.entity.BmCategory;
import com.qtu.product_service.entity.ReCaregory;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2020-07-06
 */
@Repository
public interface CategoryMapper extends BaseMapper<BmCategory> {
    //查询全部商品和按条件查询
    List<ReCaregory> selectAll(ReCaregory reCaregory);
    //查询一级目录
    List<ReCaregory> selectMenus();
}
